package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 系统应用对象 sys_app
 * 
 * @author ning
 * @date 2024-06-25
 */
public class SysApp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long appId;

    /** 应用名称 */
    @Excel(name = "应用名称")
    private String appName;

    /** 编码 */
    @Excel(name = "编码")
    private String appCode;

    /** 应用类型 */
    @Excel(name = "应用类型")
    private Long appType;

    /** 应用类型名称 */
    private String appTypeName;

    /** 应用图标：1-图片，2-图标 */
    private String appIcon;

    /** 图标类型 */
    private Long iconType;

    /** 图标颜色 */
    private String iconColor;

    /** 是否默认激活：Y-是，N-否，激活的应用下的菜单会在首页默认展开 */
    private String activeFlag;

    /** 状态：2-启用，1-禁用 */
    @Excel(name = "状态：2-启用，1-禁用")
    private Integer statusFlag;

    /** 应用来源：1:平台应用，2:第三方应用 */
    @Excel(name = "应用来源：1:平台应用，2:第三方应用")
    private Long appSource;

    /** 是否单点集成:1-否,2-是 */
    private Long isSingleIntegration;

    /** 集成状态:1-否,2-是 */
    private Long integrationState;

    /** 是否基础应用:1-否,2-是 */
    private Long isBaseApp;

    /** 区分租户里的应用：1:租户自己增的应用，2:平台给设置的应用 */
    @Excel(name = "区分租户里的应用：1:租户自己增的应用，2:平台给设置的应用")
    private Long isDefault;

    /** 应用密钥 */
    private String appSecret;

    /** 应用地址 */
    @Excel(name = "应用地址")
    private String appAddress;

    /** 排序 */
    private Long appSort;

    /** 是否删除：Y-已删除，N-未删除 */
    private String delFlag;

    /** 是否打开新页签：1-否,2-是 */
    private Integer openNewTag;

    public void setAppId(Long appId) 
    {
        this.appId = appId;
    }

    public Long getAppId() 
    {
        return appId;
    }
    public void setAppName(String appName) 
    {
        this.appName = appName;
    }

    public String getAppName() 
    {
        return appName;
    }
    public void setAppCode(String appCode) 
    {
        this.appCode = appCode;
    }

    public String getAppCode() 
    {
        return appCode;
    }
    public void setAppType(Long appType)
    {
        this.appType = appType;
    }

    public Long getAppType()
    {
        return appType;
    }
    public void setAppIcon(String appIcon) 
    {
        this.appIcon = appIcon;
    }

    public String getAppIcon() 
    {
        return appIcon;
    }
    public void setIconType(Long iconType) 
    {
        this.iconType = iconType;
    }

    public Long getIconType() 
    {
        return iconType;
    }
    public void setIconColor(String iconColor) 
    {
        this.iconColor = iconColor;
    }

    public String getIconColor() 
    {
        return iconColor;
    }
    public void setActiveFlag(String activeFlag) 
    {
        this.activeFlag = activeFlag;
    }

    public String getActiveFlag() 
    {
        return activeFlag;
    }
    public void setStatusFlag(Integer statusFlag) 
    {
        this.statusFlag = statusFlag;
    }

    public Integer getStatusFlag() 
    {
        return statusFlag;
    }
    public void setAppSource(Long appSource) 
    {
        this.appSource = appSource;
    }

    public Long getAppSource() 
    {
        return appSource;
    }
    public void setIsSingleIntegration(Long isSingleIntegration) 
    {
        this.isSingleIntegration = isSingleIntegration;
    }

    public Long getIsSingleIntegration() 
    {
        return isSingleIntegration;
    }
    public void setIntegrationState(Long integrationState) 
    {
        this.integrationState = integrationState;
    }

    public Long getIntegrationState() 
    {
        return integrationState;
    }
    public void setIsBaseApp(Long isBaseApp) 
    {
        this.isBaseApp = isBaseApp;
    }

    public Long getIsBaseApp() 
    {
        return isBaseApp;
    }
    public void setIsDefault(Long isDefault) 
    {
        this.isDefault = isDefault;
    }

    public Long getIsDefault() 
    {
        return isDefault;
    }
    public void setAppSecret(String appSecret) 
    {
        this.appSecret = appSecret;
    }

    public String getAppSecret() 
    {
        return appSecret;
    }
    public void setAppAddress(String appAddress) 
    {
        this.appAddress = appAddress;
    }

    public String getAppAddress() 
    {
        return appAddress;
    }
    public void setAppSort(Long appSort) 
    {
        this.appSort = appSort;
    }

    public Long getAppSort() 
    {
        return appSort;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setOpenNewTag(Integer openNewTag) 
    {
        this.openNewTag = openNewTag;
    }

    public Integer getOpenNewTag() 
    {
        return openNewTag;
    }

    public String getAppTypeName() {
        return appTypeName;
    }

    public void setAppTypeName(String appTypeName) {
        this.appTypeName = appTypeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("appId", getAppId())
            .append("appName", getAppName())
            .append("appCode", getAppCode())
            .append("appType", getAppType())
            .append("appTypeName", getAppTypeName())
            .append("appIcon", getAppIcon())
            .append("iconType", getIconType())
            .append("iconColor", getIconColor())
            .append("activeFlag", getActiveFlag())
            .append("statusFlag", getStatusFlag())
            .append("appSource", getAppSource())
            .append("isSingleIntegration", getIsSingleIntegration())
            .append("integrationState", getIntegrationState())
            .append("isBaseApp", getIsBaseApp())
            .append("isDefault", getIsDefault())
            .append("remark", getRemark())
            .append("appSecret", getAppSecret())
            .append("appAddress", getAppAddress())
            .append("appSort", getAppSort())
            .append("delFlag", getDelFlag())
            .append("openNewTag", getOpenNewTag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
